<js file="__PUBLIC__/Index/js/topmenubar.js"/>
</head>
<body>
	<div id="headindex">
		<div class="indextop">
			<div style="width:1100px;margin:0 auto;float:none;">
				<img src="__PUBLIC__/Index/images/NEWS_logo-hstyle02.jpg" alt="">
				<a href="">
					<img src="__PUBLIC__/Index/images/NEWS_logo-amh.jpg" alt="">
				</a>
				<span class="top_logo_line"></span>
				<a href="">
					<img src="__PUBLIC__/Index/images/NEWS_logo-mini.jpg" alt="">
				</a>
				<span class="top_logo_line"></span>
				<a href="">
					<img src="__PUBLIC__/Index/images/NEWS_logo-bq.jpg" alt="">
				</a>
				<span class="top_logo_line"></span>
				<a href="">
					<img src="__PUBLIC__/Index/images/NEWS_logo-jp.jpg" alt="">
				</a>
				<span class="top_logo_line"></span>
				<a href="">
					<img src="__PUBLIC__/Index/images/NEWS_logo-sulv.jpg" alt="">
				</a>
				<ul class="top_right">
					<if condition="isset($_SESSION['username'])">
						<li><a href="" style="color:#c70a28">您好，{$Think.session.username}</a></li>
						<li><a href="__ROOT__/index.php/UserEntry/logout">退出</a></li>
					<else/>
						<li><a href="__ROOT__/index.php/UserEntry/login" style="color:#c70a28">登录</a></li>
						<li><a href="__ROOT__/index.php/UserEntry/userReg">免费注册</a></li>
					</if>
					

					
					<li><a href="__ROOT__/index.php/Cart/index">免费购物车(<font color="#C80928" class="tcartgsnum">{$Think.session.cartGsNum|default="0"}</font>)</a></li>
				</ul>
				<div class="logo_search_area">
					<a href="__ROOT__/index.php">
						<div class="logo"></div>
					</a>
					<div class="search">
						<input type="text" class="keyword">
						<input type="submit" value="" class="search_btn">
					</div>
					<div class="search_hot">
						<span>热门搜索：</span>
						<a href="{:U('Goodslist/index',array('cid'=>39))}">2013春夏新款</a>
						<a href="{:U('Goodslist/index',array('cid'=>39))}">打底衫</a>
						<a href="{:U('Goodslist/index',array('cid'=>39))}">开衫</a>
						<a href="{:U('Goodslist/index',array('cid'=>39))}">衬衫</a>
						<a href="{:U('Goodslist/index',array('cid'=>39))}">连衣裙</a>
						<a href="{:U('Goodslist/index',array('cid'=>39))}">小脚牛仔裤</a>
						<a href="{:U('Goodslist/index',array('cid'=>39))}">女鞋</a>
						<a href="{:U('Goodslist/index',array('cid'=>39))}">配饰</a>
					</div>
				</div>
			</div>
		</div>
		<div class="topmenubar">
			<div class="top_bar_box">
				<ul>
					<li class="allcate">全部分类</li>
					<li><a href="__ROOT__/index.php">首页</a></li>
					<li class="topmb_line"></li>
					<li><a href="{:U('Goodslist/index',array('cid'=>39))}">连衣裙</a></li>
					<li class="topmb_line"></li>
					<li><a href="{:U('Goodslist/index',array('cid'=>9))}">T恤</a></li>
					<li class="topmb_line"></li>
					<li><a href="{:U('Goodslist/index',array('cid'=>39))}">衬衫</a></li>
					<li class="topmb_line"></li>
					<li><a href="{:U('Goodslist/index',array('cid'=>39))}">雪纺蕾丝</a></li>
					<li class="topmb_line"></li>
					<li><a href="{:U('Goodslist/index',array('cid'=>39))}">牛仔裤</a></li>
					<li class="topmb_line"></li>
					<li><a href="{:U('Goodslist/index',array('cid'=>39))}">休闲裤</a></li>
					<li class="topmb_line"></li>
					<li><a href="{:U('Goodslist/index',array('cid'=>39))}">连衣裙</a></li>
				</ul>
				<div class="category_box">
					<ul class="category">
					<?php
	    			if(S('clothesCate')){
	    				// S('clothesCate' , NULL);
	    				$clothesCate = S('clothesCate');
	    			}else{
	    				$db = M('category');
		    			$result = $db->select();
		    			//递归格式化所有衣服分类数据
		    			$clothesCate = recursion($result , 1 , 5);
		    			//列表也缓存
		    			S('clothesCate' , $clothesCate , 3600*24);
	    			}
	    			?>
	    			<foreach name="clothesCate" item="cate">
	    				<if condition="$key%2 eq 0">
	    					<li>
	    				<else/>
	    					<li class="catelistbg">
	    				</if>
							<div class="cateicon">{$cate.name}</div>
							<div class="cate_list">
								<foreach name="cate.children" item="val">
									<a href="{:U('Goodslist/index' , array('cid' => $val['id']))}">{$val.name}</a>
								</foreach>
							</div>
						</li>
					</foreach>
						<!-- <li>
							<div class="cateicon">外套</div>
							<div class="cate_list">
								<a href="">卫衣</a>
								<a href="">风衣</a>
								<a href="">小西装</a>
								<a href="">棉衣/羽绒服</a>
							</div>
						</li>
						<li class="catelistbg">
							<div class="cateicon">上装</div>
							<div class="cate_list">
								<a href="">卫衣</a>
								<a href="">风衣</a>
								<a href="">小西装</a>
								<a href="">棉衣/羽绒服</a>
							</div>
						</li>
						<li>
							<div class="cateicon cateicon1">裤装</div>
							<div class="cate_list">
								<a href="">卫衣</a>
								<a href="">风衣</a>
								<a href="">小西装</a>
								<a href="">棉衣/羽绒服</a>
							</div>
						</li>
						<li class="catelistbg">
							<div class="cateicon cateicon2">裙装</div>
							<div class="cate_list">
								<a href="">卫衣</a>
								<a href="">风衣</a>
								<a href="">小西装</a>
								<a href="">棉衣/羽绒服</a>
							</div>
						</li>
						<li>
							<div class="cateicon cateicon3">箱包</div>
							<div class="cate_list">
								<a href="">卫衣</a>
								<a href="">风衣</a>
								<a href="">小西装</a>
								<a href="">棉衣/羽绒服</a>
							</div>
						</li>
						<li class="catelistbg">
							<div class="cateicon cateicon4">搭配</div>
							<div class="cate_list">
								<a href="">卫衣</a>
								<a href="">风衣</a>
								<a href="">小西装</a>
								<a href="">棉衣/羽绒服</a>
							</div>
						</li> -->
					</ul>
				</div>
			</div>	
		</div>
	</div>
	<!-- ====== buycart ====== -->
	<div id="index_buycart">
		<script type="text/javascript">
			var GsPath = "__ROOT__/index.php/Goodscont/index/gid/";
			var DelGsPath = "__ROOT__/index.php/Cart/delCartGoods/";
		</script>
		<div class="buycart_c">
			<div class="cartgs_show">
				<div class="cartgslist">
					<ul class="cartgslist_c">
						<foreach name="Think.session.cart" item="val">
							<li cartlid="{$key}">
								<a href="__ROOT__/index.php/Goodscont/index/gid/{$val.gid}" title="{$val.gname}"><img src="{$val.gimg}" width="45px" height="45px" /></a>
								<p><a href="__ROOT__/index.php/Goodscont/index/gid/{$val.gid}" title="{$val.gname}">{$val.gname}</a></p>
								<p class="delcartgs">x</p>
								<p>{$val.color}&nbsp;&nbsp;{$val.size}&nbsp;&nbsp;￥{$val.sprice}&nbsp;&nbsp;x&nbsp;&nbsp;{$val.number}</p>
								
							</li>
						</foreach>
					</ul>
					<div class="empty">您的购物车中暂时没有商品</div>
					<a href="__ROOT__/index.php/Cart/index">
						<div class="tocart"></div>
					</a>
				</div>
			</div>
			<span class="gsnum">{$Think.session.cartGsNum|default="0"}</span>
		</div>
	</div>
	<!-- back top -->
	<div id="backtop">
		<img src="__PUBLIC__/Index/images/lanren_top.jpg" alt="回到顶部" title="回到顶部" width="48" height="48">
	</div>
